package com.itheima02;

import java.util.Arrays;

public class 基本类型与引用类型 {

    public static void main(String[] args) {
        int a = 10;
        int b = 10;

        f1(a);

        System.out.println(a);
        int[] arr = new int[4];

        f2(arr);

        System.out.println(Arrays.toString(arr));



    }

    public static void f1(int b){
        b= b + 10;
    }

    public static void f2(int[] arr){
        for (int i = 0; i < arr.length; i++) {
            arr[i] = 20;
        }
    }
}
